package com.xunqi.ad.client;

import com.xunqi.ad.client.form.AdPlanGetForm;
import com.xunqi.ad.client.vo.AdPlanVo;
import com.xunqi.ad.enums.ResponseEnum;
import com.xunqi.ad.vo.ResponseVo;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-05-02 21:27
 **/
@Component
public class SponsorClientHystrix implements SponsorClient {

    @Override
    public ResponseVo<List<AdPlanVo>> getAdPlansByRibbon(@Valid AdPlanGetForm form) {

        return ResponseVo.error(ResponseEnum.ERROR,"eureka-client-ad-sponsor error");
    }
}
